Testing coupling relationships in object-oriented programs

نویسندگان

  • Roger T. Alexander
  • A. Jefferson Offutt
  • Andreas Stefik
چکیده

As we move to developing object-oriented programs, the complexity traditionally found in functions and procedures is moving to the connections among components. Different faults occur when components are integrated to form higher level structures that aggregate behavior and state. Consequently, we need to place more effort on testing the connections among components. Although object-oriented technologies provide abstraction mechanisms for building components that can then be integrated to form applications, it also adds new compositional relations that can contain faults. This paper describes techniques for analyzing and testing the polymorphic relationships that occur in object-oriented software. The techniques adapt traditional data flow coverage criteria to consider definitions and uses among state variables of classes, particularly in the presence of inheritance, dynamic binding, and polymorphic overriding of state variables and methods. The application of these techniques can result in an increased ability to find faults and to create overall higher quality software.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Empirical Evaluation of Coupling-based Testing Techniques for Object-oriented Programs

Object-oriented design has caused a shift in focus from software units to the way software classes and components are connected. Thus, we are finding that we need less emphasis on unit testing and more on integration testing. The compositional relationships of inheritance and aggregation, especially when combined with polymorphism, introduce new kinds of integration faults, which cannot be cove...

متن کامل

Coupling - Based Analysis of Object - Oriented Software

COUPLING-BASED ANALYSIS OF OBJECT-ORIENTED SOFTWARE Aynur Abdurazik, PhD George Mason University, 2007 Dissertation Director: Jeff Offutt Testing and maintenance of Object-Oriented (OO) software is expensive and difficult. Previous research has shown that complex relationships among OO software components are among the key factors that make testing and maintenance costly and challenging. Thus, ...

متن کامل

Fault Detection Capabilities of Coupling-based OO Testing

Object-oriented programs cause a shift in focus from software units to the way software classes and components are connected. Thus, we are finding that we need less emphasis on unit testing and more on integration testing. The compositional relationships of inheritance and aggregation, especially when combined with polymorphism, introduce new kinds of integration faults, which can be covered us...

متن کامل

A Test Strategy for Object-Oriented Programs

The complexity and interdependencies of an object-oriented program makes testing of such programs diicult. In this paper, we present a reverse engineering based model called Object Relation Diagram (ORD), which is generated from analyzing the C++ source code of an object-oriented program. An ORD is a directed graph in which the vertices represent the object classes and the edges represent the r...

متن کامل

Static analysis and run-time coupling metrics

The relationships between coupling and external quality factors of object-oriented software[1] have been studied extensively for the past few years. For example, a clear empirical relationship between class-level coupling and the fault-proneness of the classes have been identified by several studies. A number of statistical techniques, principally Agglomerative Hierarchical Clustering (AHC) ana...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Softw. Test., Verif. Reliab.

دوره 20  شماره 

صفحات  -

تاریخ انتشار 2010